namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0026 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.IcmRequestParcel", "RequestBy", "dbo.hrm_ps_employees");
            DropIndex("dbo.IcmRequestParcel", new[] { "RequestBy" });
            AlterColumn("dbo.IcmRequestParcel", "RequestBy", c => c.Int());
            AddForeignKey("dbo.IcmRequestParcel", "RequestBy", "dbo.hrm_ps_employees", "emp_seq");
            CreateIndex("dbo.IcmRequestParcel", "RequestBy");
        }
        
        public override void Down()
        {
            DropIndex("dbo.IcmRequestParcel", new[] { "RequestBy" });
            DropForeignKey("dbo.IcmRequestParcel", "RequestBy", "dbo.hrm_ps_employees");
            AlterColumn("dbo.IcmRequestParcel", "RequestBy", c => c.Int(nullable: false));
            CreateIndex("dbo.IcmRequestParcel", "RequestBy");
            AddForeignKey("dbo.IcmRequestParcel", "RequestBy", "dbo.hrm_ps_employees", "emp_seq", cascadeDelete: true);
        }
    }
}
